package com.wufun.overseas.models.bean;

import android.content.Intent;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by xiet on 2015/7/10.
 */
public class ForumBean implements Serializable, Cloneable {
    private int fid;
    private String name;
    private String icon_src;
    private int users;
    private int posts;
    private long add_time;
    private String game_collections;
    private int follow_count;//: 10, //1.6+
    private String description;//: "test" //1.6+
    @JsonProperty("is_follow")
    private boolean is_follow;//: "test" //1.6+
    private int today_posts;
    private long follow_time;

    private int member_is_write;
    private int vip_is_write;
    private int svip_is_write;


    public ForumBean() {
    }

    public int getMember_is_write() {
        return member_is_write;
    }

    public void setMember_is_write(int member_is_write) {
        this.member_is_write = member_is_write;
    }

    public int getVip_is_write() {
        return vip_is_write;
    }

    public void setVip_is_write(int vip_is_write) {
        this.vip_is_write = vip_is_write;
    }

    public int getSvip_is_write() {
        return svip_is_write;
    }

    public void setSvip_is_write(int svip_is_write) {
        this.svip_is_write = svip_is_write;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public long getFollow_time() {
        return follow_time;
    }

    public void setFollow_time(long follow_time) {
        this.follow_time = follow_time;
    }

    public int getToday_posts() {
        return today_posts;
    }

    public void setToday_posts(int today_posts) {
        this.today_posts = today_posts;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon_src() {
        return icon_src;
    }

    public void setIcon_src(String icon_src) {
        this.icon_src = icon_src;
    }

    public int getUsers() {
        return users;
    }

    public void setUsers(int users) {
        this.users = users;
    }

    public int getPosts() {
        return posts;
    }

    public void setPosts(int posts) {
        this.posts = posts;
    }

    public long getAdd_time() {
        return add_time;
    }

    public void setAdd_time(long add_time) {
        this.add_time = add_time;
    }

    public String getGame_collections() {
        return game_collections;
    }

    public void setGame_collections(String game_collections) {
        this.game_collections = game_collections;
    }

    public int getFollow_count() {
        return follow_count;
    }

    public void setFollow_count(int follow_count) {
        this.follow_count = follow_count;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean is_follow() {
        return is_follow;
    }

    public void setIs_follow(boolean is_follow) {
        this.is_follow = is_follow;
    }
    //---------------------------------------------------------------------------------------------------

    public static class ForumExtBean {
        int startFlags;
        int requestCode;
        boolean isContainHelp;
        ForumTabBean tabBean;
        boolean refresh;
        List<ForumBean> followedForums;

        public ForumExtBean() {
        }

        public boolean isContainHelp() {
            return isContainHelp;
        }

        public void setContainHelp(boolean containHelp) {
            isContainHelp = containHelp;
        }

        public int getRequestCode() {
            return requestCode;
        }

        public void setRequestCode(int requestCode) {
            this.requestCode = requestCode;
        }

        public int getStartFlags() {
            if (startFlags == 0) return Intent.FLAG_ACTIVITY_CLEAR_TOP;
            else if (startFlags < 0) return 0;
            return startFlags;
        }

        public void setStartFlags(int startFlags) {
            this.startFlags = startFlags;
        }

        public ForumTabBean getTabBean() {
            return tabBean;
        }

        public void setTabBean(ForumTabBean tabBean) {
            this.tabBean = tabBean;
        }

        public boolean isRefresh() {
            return refresh;
        }

        public void setRefresh(boolean refresh) {
            this.refresh = refresh;
        }

        public List<ForumBean> getFollowedForums() {
            return followedForums;
        }

        public void setFollowedForums(List<ForumBean> followedForums) {
            this.followedForums = followedForums;
        }
    }

    public enum ForumEvent {
        ForumWelcomeBanner, ForumWelcome, ForumWelcomePosts,
        Forum, ForumPosts, ForumAll,
        PostsSubmit, Posts, PostsIndex2, PostsDelete, PostsComment, PostsPraise,
        CommentReply, CommentReplyDelete,
        ProfilePosts, ProfileGetUnreadMessageCount, ProfileMessage, ProfileComment,
        MyProfileFavorites,
        ForumIndexBanner, HomepageRecommendGroup, HomepageRecommendLabel
    }

    public static class ForumPostsBean implements Serializable, Cloneable {
        private int fid;
        private String fname;
        private int pid;//: 3, //帖子ID
        private int uid;//: 1, //发贴用户ID
        private String nickname;//: "test", //发贴用户昵称
        private String avatar_src;//: "system_1", //发贴用户头像
        private int first;
        private int best;//: 1, //精华贴
        private String subject;//: "test" //标题
        private String message;//: "test" //描述
        private List<ResBean> rs_list;
        private int view;//: 0, //展示数
        private int commit;//: 0, //评论数
        private int praise;//: 0, //点赞数
        @JsonProperty("is_praise")
        private boolean is_praise;
        private long add_time;//: 1436279706 //发贴时间
        private boolean attach_pic;//: true|false, //是否携带图片
        private boolean attach_video;//: true | false //是否携带视频
        private String cdn_url;
        @JsonProperty("is_favorite")
        private boolean is_favorite;
        private int forum_auth;//: 1,//权限图标显示 0->普通,1->版主 1.5.7新增
        private boolean officialAccount;//: 是否是官方账户psk
        private int auth;//: 1,//权限 1.5.7新增//你对该帖子的权限 0->无ID,1->别人的帖子,2->自己的帖子,3->专区版主,99->最高权限 1.5.6新增
        private int help;//: 1,//求助帖标志位 1-》求助
        private int strategy;//: 1,//攻略帖标志位 1-》攻略
        private int solve_flg;//: 1,//求助是否解答标志位 1-》已解答
        private int help_money;//: 100//求助金额
        private String game_id;//: 100//求助金额
        private List<TagInfo> tag_info;
        private int vip_level;
        private int svip_level;
        private ForumCopperTitle copper_title;


        //2.2---
//        private int                     pid;//": "1",    //帖子id
//        private String                  subject;//": "1",    //主题
//        private String                  message;//": "小伙帮忙",    //内容
//        private String                  praise;//": "0",    //点赞数
        private String comment;//": "0",    //评论数
        private String forum_name;//": "拳皇97",    //来自小组
        //        private String                  nickname;//": "Salem_1987",    //发帖人昵称
        private List<ResBean> small_thumb_pic_list;
        private List<RecommendLabelTag> tags;
        private String last_comment_time;//": "拳皇97",    //来自小组

        private ForumBean.GameInfo relation_game;
        private List<RecommendLabelTag> tag_list;
        private List<RecommendLabelTag> employ_tags;

        private int post_type;//1讨论类，2=攻略类，3=求助类，4=游戏类
        @JsonProperty("is_del_allow")
        private boolean is_del_allow;//：true, //是否允许删贴
        @JsonProperty("is_best_allow")
        private boolean is_best_allow;//：true,//是否允许设置精华
        @JsonProperty("is_remove_tag_allow")
        private boolean is_remove_tag_allow;//：true,//是否允许移除话题
        @JsonProperty("is_add_tag_allow")
        private boolean is_add_tag_allow;//：true,//是否允许添加话题
        @JsonProperty("is_gag")
        private boolean is_gag;//：true, //是否允许禁言
        @JsonProperty("is_first")
        private boolean is_first;//：true, //是否允许至顶贴
        @JsonProperty("is_moderator")
        private boolean is_moderator;//: true,//是否是管理员

        private String member_honor;//："原创作者", //自定义称号

        public boolean is_remove_tag_allow() {
            return is_remove_tag_allow;
        }

        public void setIs_remove_tag_allow(boolean is_remove_tag_allow) {
            this.is_remove_tag_allow = is_remove_tag_allow;
        }

        public boolean is_add_tag_allow() {
            return is_add_tag_allow;
        }

        public void setIs_add_tag_allow(boolean is_add_tag_allow) {
            this.is_add_tag_allow = is_add_tag_allow;
        }

        public List<RecommendLabelTag> getTag_list() {
            return tag_list;
        }

        public void setTag_list(List<RecommendLabelTag> tag_list) {
            this.tag_list = tag_list;
        }

        public List<RecommendLabelTag> getEmploy_tags() {
            return employ_tags;
        }

        public void setEmploy_tags(List<RecommendLabelTag> employ_tags) {
            this.employ_tags = employ_tags;
        }

        public String getMember_honor() {
            return member_honor;
        }

        public void setMember_honor(String member_honor) {
            this.member_honor = member_honor;
        }

        public int getPost_type() {
            return post_type;
        }

        public void setPost_type(int post_type) {
            this.post_type = post_type;
        }

        public boolean is_del_allow() {
            return is_del_allow;
        }

        public void setIs_del_allow(boolean is_del_allow) {
            this.is_del_allow = is_del_allow;
        }

        public boolean is_best_allow() {
            return is_best_allow;
        }

        public void setIs_best_allow(boolean is_best_allow) {
            this.is_best_allow = is_best_allow;
        }

        public boolean is_gag() {
            return is_gag;
        }

        public void setIs_gag(boolean is_gag) {
            this.is_gag = is_gag;
        }

        public boolean is_first() {
            return is_first;
        }

        public void setIs_first(boolean is_first) {
            this.is_first = is_first;
        }

        public boolean is_moderator() {
            return is_moderator;
        }

        public void setIs_moderator(boolean is_moderator) {
            this.is_moderator = is_moderator;
        }

        public GameInfo getRelation_game() {
            return relation_game;
        }

        public void setRelation_game(GameInfo relation_game) {
            this.relation_game = relation_game;
        }

        public String getLast_comment_time() {
            return last_comment_time;
        }

        public void setLast_comment_time(String last_comment_time) {
            this.last_comment_time = last_comment_time;
        }

        public List<RecommendLabelTag> getTags() {
            return tags;
        }

        public void setTags(List<RecommendLabelTag> tags) {
            this.tags = tags;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getForum_name() {
            return forum_name;
        }

        public void setForum_name(String forum_name) {
            this.forum_name = forum_name;
        }

        public List<ResBean> getSmall_thumb_pic_list() {
            return small_thumb_pic_list;
        }

        public void setSmall_thumb_pic_list(List<ResBean> small_thumb_pic_list) {
            this.small_thumb_pic_list = small_thumb_pic_list;
        }

        public ForumCopperTitle getCopper_title() {
            return copper_title;
        }

        public void setCopper_title(ForumCopperTitle copper_title) {
            this.copper_title = copper_title;
        }

        public boolean isOfficialAccount() {
            return officialAccount;
        }

        public void setOfficialAccount(boolean officialAccount) {
            this.officialAccount = officialAccount;
        }

        public int getVip_level() {
            return vip_level;
        }

        public void setVip_level(int vip_level) {
            this.vip_level = vip_level;
        }

        public int getSvip_level() {
            return svip_level;
        }

        public void setSvip_level(int svip_level) {
            this.svip_level = svip_level;
        }

        public String getGame_id() {
            return game_id;
        }

        public void setGame_id(String game_id) {
            this.game_id = game_id;
        }

        public ForumPostsBean() {
        }

        @Override
        public Object clone() throws CloneNotSupportedException {
            return super.clone();
        }

        public List<TagInfo> getTag_info() {
            return tag_info;
        }

        public void setTag_info(List<TagInfo> tag_info) {
            this.tag_info = tag_info;
        }

        public int getHelp() {
            return help;
        }

        public void setHelp(int help) {
            this.help = help;
        }

        public int getStrategy() {
            return strategy;
        }

        public void setStrategy(int strategy) {
            this.strategy = strategy;
        }

        public int getHelp_money() {
            return help_money;
        }

        public void setHelp_money(int help_money) {
            this.help_money = help_money;
        }

        public int getSolve_flg() {
            return solve_flg;
        }

        public void setSolve_flg(int solve_flg) {
            this.solve_flg = solve_flg;
        }

        public int getFid() {
            return fid;
        }

        public void setFid(int fid) {
            this.fid = fid;
        }

        public String getFname() {
            return fname;
        }

        public void setFname(String fname) {
            this.fname = fname;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar_src() {
            return avatar_src;
        }

        public void setAvatar_src(String avatar_src) {
            this.avatar_src = avatar_src;
        }

        public int getFirst() {
            return first;
        }

        public void setFirst(int first) {
            this.first = first;
        }

        public int getBest() {
            return best;
        }

        public void setBest(int best) {
            this.best = best;
        }

        public String getSubject() {
            return subject;
        }

        public void setSubject(String subject) {
            this.subject = subject;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getView() {
            return view;
        }

        public void setView(int view) {
            this.view = view;
        }

        public int getCommit() {
            return commit;
        }

        public void setCommit(int commit) {
            this.commit = commit;
        }

        public int getPraise() {
            return praise;
        }

        public void setPraise(int praise) {
            this.praise = praise;
        }

        public boolean is_praise() {
            return is_praise;
        }

        public void setIs_praise(boolean is_praise) {
            this.is_praise = is_praise;
        }

        public long getAdd_time() {
            return add_time;
        }

        public void setAdd_time(long add_time) {
            this.add_time = add_time;
        }

        public boolean isAttach_pic() {
            return attach_pic;
        }

        public void setAttach_pic(boolean attach_pic) {
            this.attach_pic = attach_pic;
        }

        public boolean isAttach_video() {
            return attach_video;
        }

        public void setAttach_video(boolean attach_video) {
            this.attach_video = attach_video;
        }

        public String getCdn_url() {
            return cdn_url;
        }

        public void setCdn_url(String cdn_url) {
            this.cdn_url = cdn_url;
        }

        public List<ResBean> getRs_list() {
            return rs_list;
        }

        public void setRs_list(List<ResBean> rs_list) {
            this.rs_list = rs_list;
        }

        public int getForum_auth() {
            return forum_auth;
        }

        public void setForum_auth(int forum_auth) {
            this.forum_auth = forum_auth;
        }

        public int getAuth() {
            return auth;
        }

        public void setAuth(int auth) {
            this.auth = auth;
        }

        public static class ResBean {
            private String type;
            private String thumb;
            private String raw;

            public ResBean() {
            }

            public ResBean(String type, String thumb, String raw) {
                this.type = type;
                this.thumb = thumb;
                this.raw = raw;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getRaw() {
                return raw;
            }

            public void setRaw(String raw) {
                this.raw = raw;
            }
        }

        public boolean is_favorite() {
            return is_favorite;
        }

        public void setIs_favorite(boolean is_favorite) {
            this.is_favorite = is_favorite;
        }

        public static class TagInfo {
            private String id;//": "2",
            private String name;//": "精华",
            private String color;//": "#ff0000"
            private String border_color;//: "#F9804F",
            private String font_color;//: "#FFFFFF"

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public String getBorder_color() {
                return border_color;
            }

            public void setBorder_color(String border_color) {
                this.border_color = border_color;
            }

            public String getFont_color() {
                return font_color;
            }

            public void setFont_color(String font_color) {
                this.font_color = font_color;
            }
        }
    }

    public static class ForumCommentBean implements Cloneable {
        private int pid;//: 4, //评论ID
        private int uid;//: 1, //评论用户ID
        private int floor;//: 1, //楼
        private String nickname;//: "test", //评论用户昵称
        private String avatar_src;
        private String message;//: "123",   //评论消息
        private long add_time;//: 1436323575, //评论发布时间
        private List<String> raw_pic_list;
        private List<String> pic_list;
        private List<ForumCommentReplyBean> reply_list;//:
        private int forum_auth;//: 1436323575, //评论发布时间
        private int answer_flg;
        private boolean officialAccount;
        private int vip_level;
        private int svip_level;

        @JsonProperty("is_moderator")
        private boolean is_moderator;//: true,//是否是管理员

        private String member_honor;//："原创作者", //自定义称号

        public boolean is_moderator() {
            return is_moderator;
        }

        public void setIs_moderator(boolean is_moderator) {
            this.is_moderator = is_moderator;
        }

        public String getMember_honor() {
            return member_honor;
        }

        public void setMember_honor(String member_honor) {
            this.member_honor = member_honor;
        }

        public int getVip_level() {
            return vip_level;
        }

        public void setVip_level(int vip_level) {
            this.vip_level = vip_level;
        }

        public int getSvip_level() {
            return svip_level;
        }

        public void setSvip_level(int svip_level) {
            this.svip_level = svip_level;
        }

        public boolean isOfficialAccount() {
            return officialAccount;
        }

        public void setOfficialAccount(boolean officialAccount) {
            this.officialAccount = officialAccount;
        }

        public ForumCommentBean() {
        }

        public ForumCommentBean(ForumCommentBean bean) {
            this.pid = bean.getPid();
            this.uid = bean.getUid();
            this.floor = bean.getFloor();
            this.nickname = bean.getNickname();
            this.avatar_src = bean.getAvatar_src();
            this.message = bean.getMessage();
            this.add_time = bean.getAdd_time();
            this.raw_pic_list = bean.getRaw_pic_list();
            this.pic_list = bean.getPic_list();
            setReply_list(bean.getReply_list());
            this.forum_auth = bean.getForum_auth();
            this.officialAccount = bean.isOfficialAccount();
            this.answer_flg = bean.getAnswer_flg();
        }

        public int getAnswer_flg() {
            return answer_flg;
        }

        public void setAnswer_flg(int answer_flg) {
            this.answer_flg = answer_flg;
        }

        public List<String> getRaw_pic_list() {
            return raw_pic_list;
        }

        public void setRaw_pic_list(List<String> raw_pic_list) {
            this.raw_pic_list = raw_pic_list;
        }

        public List<String> getPic_list() {
            return pic_list;
        }

        public void setPic_list(List<String> pic_list) {
            if (this.pic_list == null) this.pic_list = new ArrayList<String>();
            this.pic_list.clear();
            this.pic_list.addAll(pic_list);
        }

        public String getAvatar_src() {
            return avatar_src;
        }

        public void setAvatar_src(String avatar_src) {
            this.avatar_src = avatar_src;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public int getFloor() {
            return floor;
        }

        public void setFloor(int floor) {
            this.floor = floor;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public long getAdd_time() {
            return add_time;
        }

        public void setAdd_time(long add_time) {
            this.add_time = add_time;
        }

        public List<ForumCommentReplyBean> getReply_list() {
            return reply_list;
        }

        public void setReply_list(List<ForumCommentReplyBean> reply_list) {
            if (this.reply_list == null) this.reply_list = new ArrayList<ForumCommentReplyBean>();
            this.reply_list.clear();

            this.reply_list.addAll(reply_list);
        }

        public int getForum_auth() {
            return forum_auth;
        }

        public void setForum_auth(int forum_auth) {
            this.forum_auth = forum_auth;
        }

        @Override
        public Object clone() {
            try {
                return super.clone();
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            }

            return new ForumCommentBean();
        }
    }

    public static class ForumCommentReplyBean {
        private int rid;//: 3, //回复ID
        private int uid;//: 2, //回复用户
        private String nickname;//: "test", //回复用户昵称
        private String message;//: "123", //回复消息
        private int rrid;//: 3, //回复ID
        private int ruid;//: 1, //回复回复iid
        private String rnickname;//: "", //回复回复昵称
        private long add_time;//: 1436323575 //回复昵称
        private boolean officialAccount;//: //回复者是否为官方
        private boolean rOfficialAccount;//: //被回复者是否为官方

        private BannerBean jump_info;//:跳转信息

        public boolean isOfficialAccount() {
            return officialAccount;
        }

        public void setOfficialAccount(boolean officialAccount) {
            this.officialAccount = officialAccount;
        }

        public boolean isrOfficialAccount() {
            return rOfficialAccount;
        }

        public void setrOfficialAccount(boolean rOfficialAccount) {
            this.rOfficialAccount = rOfficialAccount;
        }

        public BannerBean getJump_info() {
            return jump_info;
        }

        public void setJump_info(BannerBean jump_info) {
            this.jump_info = jump_info;
        }

        public int getRrid() {
            return rrid;
        }

        public void setRrid(int rrid) {
            this.rrid = rrid;
        }

        public int getRid() {
            return rid;
        }

        public void setRid(int rid) {
            this.rid = rid;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getRuid() {
            return ruid;
        }

        public void setRuid(int ruid) {
            this.ruid = ruid;
        }

        public String getRnickname() {
            return rnickname;
        }

        public void setRnickname(String rnickname) {
            this.rnickname = rnickname;
        }

        public long getAdd_time() {
            return add_time;
        }

        public void setAdd_time(long add_time) {
            this.add_time = add_time;
        }
    }

    public static class ForumWelcomeBannerBean {
        //        public String src;//: "http://bbs.papa91.com/template/dean_meizu_141003/deancss/logo.png",
//        public String href;//: "",
//        public int pid;//: 2
        public BannerBean bannerDataCellBean;

        /*public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        public int getRid() {
            return pid;
        }

        public void setRid(int pid) {
            this.pid = pid;
        }*/

        public BannerBean getBannerDataCellBean() {
            return bannerDataCellBean;
        }

        public void setBannerDataCellBean(BannerBean bannerDataCellBean) {
            this.bannerDataCellBean = bannerDataCellBean;
        }
    }

    public static class ForumWelcomeAdBean {
        private int position;
        private String title;
        private String sub_title;
        public List<BannerBean> adBeans;
//        private List<ForumWelcomeAdItemBean> list;

        public int getPosition() {
            return position;
        }

        public void setPosition(int position) {
            this.position = position;
        }

        public String getSub_title() {
            return sub_title;
        }

        public void setSub_title(String sub_title) {
            this.sub_title = sub_title;
        }
        /*public List<ForumWelcomeAdItemBean> getList() {
            return list;
        }

        public void setList(List<ForumWelcomeAdItemBean> list) {
            this.list = list;
        }*/

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<BannerBean> getAdBeans() {
            return adBeans;
        }

        public void setAdBeans(List<BannerBean> adBeans) {
            if (this.adBeans == null)
                this.adBeans = new ArrayList<BannerBean>();
            this.adBeans.clear();
            this.adBeans.addAll(adBeans);
        }
    }

    public static class ForumWelcomeAdItemBean {
//        private String src;
//        private String href;
//        private int pid;

        /*public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        public int getRid() {
            return pid;
        }

        public void setRid(int pid) {
            this.pid = pid;
        }*/
    }

    public static class ForumProfilePostUserInfoBean {
        private int uid;//":2,                    //用户UID
        private String nickname;//":"icecode",       //用户昵称
        private int papa_money;//":18,            //用户铜板
        private String avatar_src;//":"system_8"     //头像
        private int unread_message;
        private boolean is_sign;

        public ForumProfilePostUserInfoBean() {
        }

        public boolean is_sign() {
            return is_sign;
        }

        public void setIs_sign(boolean is_sign) {
            this.is_sign = is_sign;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public int getPapa_money() {
            return papa_money;
        }

        public void setPapa_money(int papa_money) {
            this.papa_money = papa_money;
        }

        public String getAvatar_src() {
            return avatar_src;
        }

        public void setAvatar_src(String avatar_src) {
            this.avatar_src = avatar_src;
        }

        public int getUnread_message() {
            return unread_message;
        }

        public void setUnread_message(int unread_message) {
            this.unread_message = unread_message;
        }
    }

    public static class ForumProfileCommentBean {
        public static final String TYPE_REPLY = "reply";
        public static final String TYPE_COMMENT = "comment";

        private String type;//: "reply","comment"
        private int ruid;//:0,
        private String rnickname;//:"",
        private String message;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public int getRuid() {
            return ruid;
        }

        public void setRuid(int ruid) {
            this.ruid = ruid;
        }

        public String getRnickname() {
            return rnickname;
        }

        public void setRnickname(String rnickname) {
            this.rnickname = rnickname;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }

    public static class ForumProfileMessageBean {

        public static final String TYPE_REPLY = "reply";
        public static final String TYPE_COMMENT = "comment";
        public static final String TYPE_PRAISE = "praise";
        public static final String TYPE_BESTANSWER = "bestanswer";
        public static final String TYPE_BEST = "best";

        private int from_uid;//: 2,
        private String from_nickname;//: "icecode",
        private String from_avatar_src;//: "system_8",
        private String from_type;//: "comment",
        private long add_time;//: "1437464053",
        private String message;
        private int comment_id;
        private int pid;
        private int rid;
        private ForumPostsBean posts;
        private int vip_level;
        private int svip_level;
        private boolean from_officialAccount;//: 是否是官方账户psk

        public boolean isFrom_officialAccount() {
            return from_officialAccount;
        }

        public void setFrom_officialAccount(boolean from_officialAccount) {
            this.from_officialAccount = from_officialAccount;
        }

        public int getVip_level() {
            return vip_level;
        }

        public void setVip_level(int vip_level) {
            this.vip_level = vip_level;
        }

        public int getSvip_level() {
            return svip_level;
        }

        public void setSvip_level(int svip_level) {
            this.svip_level = svip_level;
        }

        public void setComment_id(int comment_id) {
            this.comment_id = comment_id;
        }

        public int getRid() {
            return rid;
        }

        public void setRid(int rid) {
            this.rid = rid;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getFrom_uid() {
            return from_uid;
        }

        public void setFrom_uid(int from_uid) {
            this.from_uid = from_uid;
        }

        public String getFrom_nickname() {
            return from_nickname;
        }

        public void setFrom_nickname(String from_nickname) {
            this.from_nickname = from_nickname;
        }

        public String getFrom_avatar_src() {
            return from_avatar_src;
        }

        public void setFrom_avatar_src(String from_avatar_src) {
            this.from_avatar_src = from_avatar_src;
        }

        public String getFrom_type() {
            return from_type;
        }

        public void setFrom_type(String from_type) {
            this.from_type = from_type;
        }

        public long getAdd_time() {
            return add_time;
        }

        public void setAdd_time(long add_time) {
            this.add_time = add_time;
        }

        public int getComment_id() {
            return comment_id;
        }

        public void setComment_pid(int comment_pid) {
            this.comment_id = comment_pid;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public ForumPostsBean getPosts() {
            return posts;
        }

        public void setPosts(ForumPostsBean posts) {
            this.posts = posts;
        }
    }

    public static class ForumTabBean {
        public enum Type {
            TAB_TYPE_NORMAL("normal_posts"),
            TAB_TYPE_HELP("help_posts"),
            TAB_TYPE_LAST("last_posts"),
            TAB_TYPE_BEST("best_posts"),
            TAB_TYPE_FORUM_MEMBER("forum_members"),
            TAB_TYPE_ACTIVITY("activity_posts"),
            TAB_TYPE_GIFT("gift_posts"),
            TAB_TYPE_STRATEGY("strategy_posts");

            String name;

            Type(String name) {
                this.name = name;
            }

            public String getName() {
                return name;
            }
        }

        private String tab_type;//: "normal_posts",
        private String tab_name;//: "看帖"

        public String getTab_type() {
            return tab_type;
        }

        public void setTab_type(String tab_type) {
            this.tab_type = tab_type;
        }

        public String getTab_name() {
            return tab_name;
        }

        public void setTab_name(String tab_name) {
            this.tab_name = tab_name;
        }
    }

    public static class ForumMemberBean {
        private String nickname;
        private String avatar_src;
        private int uid;
        private long add_time;
        private int vip_level;
        private int svip_level;

        public int getVip_level() {
            return vip_level;
        }

        public void setVip_level(int vip_level) {
            this.vip_level = vip_level;
        }

        public int getSvip_level() {
            return svip_level;
        }

        public void setSvip_level(int svip_level) {
            this.svip_level = svip_level;
        }

        public ForumMemberBean() {
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar_src() {
            return avatar_src;
        }

        public void setAvatar_src(String avatar_src) {
            this.avatar_src = avatar_src;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public long getAdd_time() {
            return add_time;
        }

        public void setAdd_time(long add_time) {
            this.add_time = add_time;
        }
    }

    public static class ForumTopicBean {
        private int tid;//: 1,
        private String name;//: "每日福利",
        private String icon_src;//: "http://bbs.papa91.com/template/dean_meizu_141003/deancss/logo.png",

        public ForumTopicBean() {
        }

        public int getTid() {
            return tid;
        }

        public void setTid(int tid) {
            this.tid = tid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIcon_src() {
            return icon_src;
        }

        public void setIcon_src(String icon_src) {
            this.icon_src = icon_src;
        }
    }

    public static class GameInfo {
        private String game_id;//: 1663697867,
        private String game_name;//    :// '拳皇97',
        private String game_desc;//   :// '游戏厅的火爆游戏',
        private String game_size;//    : //'20.03',
        private String game_ico_remote;//    : //'20.03',
        private String game_ico;//    : //'20.03',
        private String game_info_tpl_type;//    : //'20.03',
        private String game_down_url_remote;//'  :  'http://192.168.78.5:9098/simulator/fc/mla_2.9_22.2.12_62.zip',
        private String game_down_url_mote;//'  :  'http://192.168.78.5:9098/simulator/fc/mla_2.9_22.2.12_62.zip',
        private List<GameTagInfo> game_tag_info;// :\
        private TipNew sp_tag_info;
        private int sp_tpl_two_position;
        private int down_status;
        private int down_count;
        private String plugin_num = "";
        private int type=0;

        public String getGame_down_url_mote() {
            return game_down_url_mote;
        }

        public void setGame_down_url_mote(String game_down_url_mote) {
            this.game_down_url_mote = game_down_url_mote;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        private int comment_score_switch;//点评，是否显示评分星星

        public int getComment_score_switch() {
            return comment_score_switch;
        }

        public void setComment_score_switch(int comment_score_switch) {
            this.comment_score_switch = comment_score_switch;
        }
//
//        @JsonIgnore
//        private DownloadTask downloadTask;

        public String getGame_ico() {
            return game_ico;
        }

        public void setGame_ico(String game_ico) {
            this.game_ico = game_ico;
        }

        public TipNew getSp_tag_info() {
            return sp_tag_info;
        }

        public void setSp_tag_info(TipNew sp_tag_info) {
            this.sp_tag_info = sp_tag_info;
        }

        public int getDown_count() {
            return down_count;
        }

        public void setDown_count(int down_count) {
            this.down_count = down_count;
        }

//        public DownloadTask getDownloadTask() {
//            return downloadTask;
//        }
//
//        public void setDownloadTask(DownloadTask downloadTask) {
//            this.downloadTask = downloadTask;
//        }

        public int getDown_status() {
            return down_status;
        }

        public void setDown_status(int down_status) {
            this.down_status = down_status;
        }

        public int getSp_tpl_two_position() {
            return sp_tpl_two_position;
        }

        public void setSp_tpl_two_position(int sp_tpl_two_position) {
            this.sp_tpl_two_position = sp_tpl_two_position;
        }

        public String getGame_info_tpl_type() {
            return game_info_tpl_type;
        }

        public void setGame_info_tpl_type(String game_info_tpl_type) {
            this.game_info_tpl_type = game_info_tpl_type;
        }

        public String getGame_ico_remote() {
            return game_ico_remote;
        }

        public void setGame_ico_remote(String game_ico_remote) {
            this.game_ico_remote = game_ico_remote;
        }

        public String getGame_id() {
            return game_id;
        }

        public void setGame_id(String game_id) {
            this.game_id = game_id;
        }

        public String getGame_name() {
            return game_name;
        }

        public void setGame_name(String game_name) {
            this.game_name = game_name;
        }

        public String getGame_desc() {
            return game_desc;
        }

        public void setGame_desc(String game_desc) {
            this.game_desc = game_desc;
        }

        public String getGame_size() {
            return game_size;
        }

        public void setGame_size(String game_size) {
            this.game_size = game_size;
        }

        public String getGame_down_url_remote() {
            return game_down_url_remote;
        }

        public String getPlugin_num() {
            return plugin_num;
        }

        public void setPlugin_num(String plugin_num) {
            this.plugin_num = plugin_num;
        }

        public void setGame_down_url_remote(String game_down_url_remote) {
            this.game_down_url_remote = game_down_url_remote;
        }

        public List<GameTagInfo> getGame_tag_info() {
            return game_tag_info;
        }

        public void setGame_tag_info(List<GameTagInfo> game_tag_info) {
            this.game_tag_info = game_tag_info;
        }

        public static class GameTagInfo {
            private String id;//: "11",
            private String name;//" : "动作",
            private String color;//" : "#8dbbec",

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }
        }
    }

    public static class ForumGiftBean {
        private String oem_name;//": "title",
        private String oem_title;//": "desc",
        private String oem_type;//": "3",
        private String oem_id;//": "3",
        private String surplus_count;//": "7",
        private String oem_icon;//": "hhttp://xxx/xx.png",  #礼包图标
        private Boolean receive;//": true
        private String cdk_code;//": "hhttp://xxx/xx.png",  #礼包图标

        private String oem_end_time;//": "hhttp://xxx/xx.png",  #礼包图标

        public String getOem_end_time() {
            return oem_end_time;
        }

        public void setOem_end_time(String oem_end_time) {
            this.oem_end_time = oem_end_time;
        }

        public String getCdk_code() {
            return cdk_code;
        }

        public void setCdk_code(String cdk_code) {
            this.cdk_code = cdk_code;
        }

        public String getOem_name() {
            return oem_name;
        }

        public void setOem_name(String oem_name) {
            this.oem_name = oem_name;
        }

        public String getOem_title() {
            return oem_title;
        }

        public void setOem_title(String oem_title) {
            this.oem_title = oem_title;
        }

        public String getOem_type() {
            return oem_type;
        }

        public void setOem_type(String oem_type) {
            this.oem_type = oem_type;
        }

        public String getOem_id() {
            return oem_id;
        }

        public void setOem_id(String oem_id) {
            this.oem_id = oem_id;
        }

        public String getSurplus_count() {
            return surplus_count;
        }

        public void setSurplus_count(String surplus_count) {
            this.surplus_count = surplus_count;
        }

        public String getOem_icon() {
            return oem_icon;
        }

        public void setOem_icon(String oem_icon) {
            this.oem_icon = oem_icon;
        }

        public Boolean getReceive() {
            return receive;
        }

        public void setReceive(Boolean receive) {
            this.receive = receive;
        }
    }

    public static class ForumSearchIndexBean {
        private String keyword;
        private String color;

        public String getKeyword() {
            return keyword;
        }

        public void setKeyword(String keyword) {
            this.keyword = keyword;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }
    }

    public static class ForumSearchQueryBean {
        private String pid;
        private String subject;
        private String view;
        private String comment;
        private String praise;
        private String message;

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public String getSubject() {
            return subject;
        }

        public void setSubject(String subject) {
            this.subject = subject;
        }

        public String getView() {
            return view;
        }

        public void setView(String view) {
            this.view = view;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getPraise() {
            return praise;
        }

        public void setPraise(String praise) {
            this.praise = praise;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }

    public static class ForumGameStrategyTagBean {
        private String tag_id;//": "1",
        private String tag_name;//": "网游"

        public String getTag_id() {
            return tag_id;
        }

        public void setTag_id(String tag_id) {
            this.tag_id = tag_id;
        }

        public String getTag_name() {
            return tag_name;
        }

        public void setTag_name(String tag_name) {
            this.tag_name = tag_name;
        }
    }

    public static class ForumCopperTitle {
        private String battleTitle;
        private String battleColor;

        public String getBattleTitle() {
            return battleTitle;
        }

        public void setBattleTitle(String battleTitle) {
            this.battleTitle = battleTitle;
        }

        public String getBattleColor() {
            return battleColor;
        }

        public void setBattleColor(String battleColor) {
            this.battleColor = battleColor;
        }
    }

    public static class ForumGagType {
        private int type;
        private String name;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
